package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface IWmMaterialService extends IService<WmMaterial> {
    /**
     * 图片上传
     * @param multipartFile
     * @return
     * @throws IOException
     */
    public ResponseResult uploadPicture(MultipartFile multipartFile) throws IOException;

    /**
     * 素材列表查询
     * @param dto
     * @return
     */
    public ResponseResult listByPage(WmMaterialDto dto);

    /**
     * 图片素材删除
     * @param id
     * @return
     */
    public ResponseResult deletePicture(Integer id);

    /**
     * 修改素材收藏状态----取消收藏
     * @param id
     * @return
     */
    public ResponseResult cancelCollect(Integer id);

    /**
     * 修改收藏状态---收藏素材
     * @param id
     * @return
     */
    public ResponseResult collect(Integer id);
}
